package com.cdshangpai.utils.db.beans;

import android.content.ContentValues;

import com.cdshangpai.utils.offlinecache.base.slot.IdPicker;
import com.cdshangpai.utils.offlinecache.base.slot.PhotosPicker;
import com.cdshangpai.utils.offlinecache.base.slot.TitleImagePicker;
import com.cdshangpai.utils.offlinecache.base.slot.VersionPicker;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//酒店数据
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Hotal implements IdPicker, VersionPicker, TitleImagePicker, PhotosPicker {
    public Integer id;
    public Long index;
    public String name;
    public String content;
    public String titleimg;
    public String city;
    public String photos;
    public String version;
    public String titleimgUrl;
    public String photosUrl;

    public ContentValues getValues()
    {
        ContentValues values=new ContentValues();
        values.put("id",id);
        values.put("`index`",index);
        values.put("name",name);
        values.put("content",content);
        values.put("titleimg",titleimg);
        values.put("city",city);
        values.put("photos",photos);
        values.put("version",version);
        return values;
    }
}
